{template 'common/header'}
<ul class="nav nav-tabs">
    <li><a href="{php echo $this->createWebUrl('fourhb')}">红包设置</a></li>
    <li><a href="{php echo $this->createWebUrl('fourhblog')}">红包领取记录</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('fourhbwith')}">企业付款提现记录</a></li>
    <li><a href="{php echo $this->createWebUrl('fourhbwith2')}">收款码提现记录</a></li>
    <li><a href="{php echo $this->createWebUrl('payset')}">支付证书</a></li>
</ul>

<style>

    th{

        text-align: center !important;

    }

    td{

        text-align: center !important;

        white-space: normal !important;

        word-break: break-all !important;

    }

    .account-stat-num > div{width:20%; float:left; font-size:16px; text-align:center;}

    .account-stat-num > div span{display:block; font-size:30px; font-weight:bold;}

</style>

<div class="panel panel-default">
    <div class="panel-heading" style="color:red;">驳回提现申请，提现金额不会退回到用户账户</div>
    <div class="table-responsive panel-body">
        <table class="table table-hover">
            <thead class="navbar-inner">
            <tr>
                <th>昵称</th>
                <th>头像</th>
                <th>提现金额</th>
                <th>状态</th>                 
                <th>流水号</th>
                <th>提现时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody id="mem-list">
            {loop $list $item}
            <tr>
                <td><a href="{php echo $this->createWebUrl('fourhblog', array('user_id' => $item['user_id']))}"><span style="color:#428bca;border-bottom:1px solid #428bca;">{$item['nickname']}</span></a></td>
                <td><img src="{php echo toimage($item['avatar'])}" style="width:60px;"></td>
                <td>{$item['money']}</td>
                <td>{if $item['status'] == 0}<label class="label label-primary">待审核</label>{elseif $item['status'] == 1}<label class="label label-success">已发放</label>{elseif $item['status'] == 2}<label class="label label-default">已驳回</label>{/if}</td>
                <td>{$item['partner_trade_no']}</td>
                <td>{php echo date('Y-m-d H:i:s',$item['add_time']);}</td>
                <td>
                {if $item['status'] == 0}
                    <a class="btn btn-primary btn-sm" onclick="return confirm('确认发放吗？');return false;" href="{php echo $this->createWebUrl('hbtixian', array('id' => $item['id'],'op'=>'send'))}">确认发放</a>
                
                    <a class="btn btn-danger btn-sm" onclick="return confirm('确认驳回吗？');return false;" href="{php echo $this->createWebUrl('hbtixian', array('op' => 'del', 'id' => $item['id']))}">驳回</a>
                {/if}
                </td>
            </tr>
            {/loop}
            {if empty($item) }
            <tr ng-if="!wechats">
            <td colspan="7" class="text-center">暂无数据</td>
            </tr>
            {/if}
            <tr>
            <td colspan="12" style="text-align:right">{$pager}</td>
            </tr> 
            </tbody>
        </table>
        {$pager}
    </div>
</div>
</html>